-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use message pack for project.razor.*
configuration file
#9270
Use message pack for project.razor.*
configuration file
#9270
Conversation
This change allows message pack formatters to support "skimming" or partially deserializing objects. This is needed to allow quickly skipping through tag helpers that are already cached by checksum without deserializing them. Skimming ensures that the `SerializerCachingOptions` are correctly populated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, and exciting results.
My only question is why Skim uses ReadArrayHeader
and not ReadArrayHeaderAndVerify
(and whether "Skim" is the right name, and whether ".bin" is the right file extension 😛)
I looked through and didn't spot anyplace where |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
I saw this and figured it could be |
Good catch! Very good idea to use |
This change uses the message pack formatters to serialize and deserialize the project configuration file. Of particular note, I added support to the message pack formatters for "skimming". The idea is that, when deserializing tag helpers, we look at the checksum first and determine whether that tag helper is in our cache. If it is, partially deserialize the tag helper by skimming through the byte stream. While skipping, we ensure that the
SerializerCachingOptions
are populated correctly with cached streams andMetadataCollections
. In addition, because we're no longer serializing the file as "json", I've changed the file extension to ".bin".